package com.nit.lab.entity.basic;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @文件名：UnitEntity
 * @创建人: SN
 * @创建时间: 2020/3/23
 * @描述:
 */
public class UnitEntity {

    private Long unitId;

    private String unitName;

    private String unitInfo;

    private Long unitFather;

    private Long unitType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;


    public UnitEntity() {
    }

    public UnitEntity(Long unitId, String unitName, String unitInfo, Long unitFather, Long unitType, Date gmtCreate) {
        this.unitId = unitId;
        this.unitName = unitName;
        this.unitInfo = unitInfo;
        this.unitFather = unitFather;
        this.unitType = unitType;
        this.gmtCreate = gmtCreate;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitInfo() {
        return unitInfo;
    }

    public void setUnitInfo(String unitInfo) {
        this.unitInfo = unitInfo;
    }

    public Long getUnitFather() {
        return unitFather;
    }

    public void setUnitFather(Long unitFather) {
        this.unitFather = unitFather;
    }

    public Long getUnitType() {
        return unitType;
    }

    public void setUnitType(Long unitType) {
        this.unitType = unitType;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}
